#!/bin/bash

function update()
{
    cd /home/lu/workspace/cat/
    if [ $? -ne 0 ]; then
        return
    fi
    git checkout master
    if [ $? -ne 0 ]; then
        return
    fi
    git pull
    if [ $? -ne 0 ]; then
        return
    fi
    colcon build
}


source /home/lu/.bashrc
source /opt/ros/jazzy/setup.bash
source /home/lu/workspace/cat/install/setup.sh
update()
nohup ros2 launch cat cat.launch.py &
